HTMLify
style.css
Views: 15 | Author: huxn-webdev
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 | * { padding: 0; margin: 0; box-sizing: border-box; } :root { --main-color: #161a1d; --primary-color: #7289da; --gray-color: #4f4f4f; } body { background-color: var(--main-color); } /* Form */ form { border: 2px solid rgba(255, 255, 255, 0.224); border-radius: 5px; width: 30%; padding: 40px; display: flex; flex-direction: column; justify-content: center; align-items: center; opacity: 1.2; margin-left: 60px; margin-top: 50px; } form input { padding: 6px; width: 230px; outline: none; } input[type="submit"] { width: 230px; background: var(--primary-color); border: none; padding: 10px 20px; cursor: pointer; } .already { margin-top: 20px; } form p { font-family: sans-serif; font-size: 14px; color: #fff; } .input-container p.msg { visibility: hidden; margin-bottom: 10px; margin-top: 5px; } .input-container.error p.msg { visibility: visible; } img { width: 51%; position: absolute; top: 60px; right: 10%; } .content h1 { position: absolute; top: 45%; right: 38%; font-size: 5rem; color: #fff; } .input-container.error input { border-color: red; } .input-container.success input { border-color: rgb(97, 249, 97); } |